<div class="dux-body">
    <div class="dux-box">
        <div class="box-side">
            <div class="am-panel am-panel-default dux-panel">
                <ul class="am-nav">
                    <li><a href="{url('index')}">基本设置</a></li>
                    <li><a href="{url('apply')}">申请设置</a></li>
                    <li><a href="{url('level')}">升级设置</a></li>
                    <li class="am-active"><a href="{url('clear')}">结算设置</a></li>
                    <li><a href="{url('notice')}">消息设置</a></li>
                </ul>
            </div>
        </div>
        <div class="box-body">
            <div class="am-panel am-panel-default dux-panel">
                <div class="am-panel-hd">结算设置</div>
                <div class="am-panel-bd">
                    <form class="am-form  am-form-horizontal dux-form" method="post" action="{url()}"
                          data-dux="form-bind">
                        <fieldset>
                            <div class="am-form-group">
                                <label class="am-u-md-2 am-u-sm-12 am-form-label">提现额度</label>
                                <div class="am-u-md-10 am-u-sm-12">
                                    <input type="number" name="clear_withdraw" value="{$info.clear_withdraw}">
                                    <div class="am-form-help">佣金提现到余额最低额度</div>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label class="am-u-md-2 am-u-sm-12 am-form-label">计算方式</label>
                                <div class="am-u-md-10 am-u-sm-12">
                                    <div class="am-g">
                                        <label class="am-radio-inline">
                                            <!--if{$info['clear_type']}-->
                                            <input name="clear_type" value="1" checked="checked" type="radio">
                                            <!--{else}-->
                                            <input name="clear_type" value="1" type="radio">
                                            <!--{/if}-->
                                            默认方式
                                        </label>

                                        <label class="am-radio-inline">
                                            <!--if{!$info['clear_type']}-->
                                            <input name="clear_type" checked="checked" value="0" type="radio">
                                            <!--{else}-->
                                            <input name="clear_type" value="0" type="radio">
                                            <!--{/if}-->
                                            支付方式
                                        </label>

                                    </div>
                                    <div class="am-form-help">
                                        默认方式：除去运费优惠等外部费用计算佣金。
                                        <br>
                                        支付方式：计算订单实付金额计算佣金。
                                    </div>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label class="am-u-md-2 am-u-sm-12 am-form-label">个人所得税</label>
                                <div class="am-u-md-10 am-u-sm-12">
                                    <input type="number" name="clear_tax" value="{$info.clear_tax}">
                                    <div class="am-form-help">佣金提现时扣除个人所得税，单位：百分比</div>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label class="am-u-md-2 am-u-sm-12 am-form-label">免税额度</label>
                                <div class="am-u-md-10 am-u-sm-12">
                                    <input type="number" name="clear_tax_free" value="{$info.clear_tax_free}">
                                    <div class="am-form-help">佣金提现小于设置额度时免除税费</div>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label class="am-u-md-2 am-u-sm-12 am-form-label">结算天数</label>
                                <div class="am-u-md-10 am-u-sm-12">
                                    <input type="number" name="clear_day" value="{$info.clear_day}">
                                    <div class="am-form-help">当订单完成设置天数后才进行结算佣金</div>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <div class="am-u-sm-offset-12 am-u-md-offset-2">
                                    <button class="am-btn am-btn-primary" type="submit">保存</button>
                                </div>
                            </div>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
